const routes = require("./routes")

function generate(app) {
  Object.keys(routes).forEach(i => {
    app.use(routes[i].routes()).use(routes[i].allowedMethods())
  })
}

module.exports = generate